package com.cooge.xxmp.util;

import javax.servlet.http.HttpServletRequest;

public class NetUtil {
	
	public static String requestToString(HttpServletRequest request,String name){
		
		String username = (String) request.getParameter(name);
		if(username==null){
			username = (String) request.getAttribute(name);
		}
		return username;
	}
	

}
